lxpanel-0.10.1^20240825gitffd815fc-1.fc42

List of Findings

Error: COMPILER_WARNING (CWE-563): [#def1]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/batt/batt.c: scope_hint: In function 'update_display'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/batt/batt.c:243:9: warning[-Wunused-but-set-variable]: variable 'rate' set but not used
#  243 |     int rate;
#      |         ^~~~
#  241|       battery *b = lx_b->b;
#  242|       /* unit: mW */
#  243|->     int rate;
#  244|       gboolean isCharging;
#  245|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/batt/batt.c: scope_hint: In function 'update_display'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/batt/batt.c:292:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'a'
#  290|   
#  291|               Alarm *a = (Alarm *) malloc(sizeof(Alarm));
#  292|->             a->command = lx_b->alarmCommand;
#  293|               a->lock = &(lx_b->alarmProcessLock);
#  294|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/cpufreq/cpufreq.c: scope_hint: In function 'get_cur_freq'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/cpufreq/cpufreq.c:91:60: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#   89|       char buf[ 100 ], sstmp [ 256 ];
#   90|   
#   91|->     snprintf(sstmp, sizeof(sstmp), "%s/%s", (char*)cf->cpus->data, SCALING_CUR_FREQ);
#   92|       if ((fp = fopen( sstmp, "r")) != NULL) {
#   93|           if (fgets(buf, 100, fp))

Error: COMPILER_WARNING (CWE-477): [#def4]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-icon.c: scope_hint: In function 'netstatus_icon_get_default_pixbuf'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-icon.c:105:7: warning[-Wdeprecated-declarations]: 'gdk_pixbuf_new_from_inline' is deprecated
#  105 |       fallback_pixbuf = gdk_pixbuf_new_from_inline (-1,
#      |       ^~~~~~~~~~~~~~~
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h:34: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdkpixbuf.h:37: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdkcairo.h:28: included_from: Included from here.
/usr/include/gtk-2.0/gdk/gdk.h:33: included_from: Included from here.
/usr/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h:298:12: note: declared here
#  298 | GdkPixbuf* gdk_pixbuf_new_from_inline   (gint          data_length,
#      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~
#  103|     if (!fallback_pixbuf)
#  104|       {
#  105|->       fallback_pixbuf = gdk_pixbuf_new_from_inline (-1,
#  106|   						    fallback_icon_data,
#  107|   						    FALSE,

Error: COMPILER_WARNING (CWE-697): [#def5]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-iface.c: scope_hint: In function 'netstatus_iface_get_hw_details'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-iface.c:1074:15: warning[-Waddress]: the comparison will always evaluate as 'true' for the address of 'sa_data' will never be NULL
# 1074 |   if (hw_addr && if_req.ifr_hwaddr.sa_data && hw_type->print_hw_addr)
#      |               ^~
/usr/include/sys/socket.h:33: included_from: Included from here.
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-iface.c:43: included_from: Included from here.
/usr/include/bits/socket.h:187:10: note: 'sa_data' declared here
#  187 |     char sa_data[14];           /* Address data.  */
#      |          ^~~~~~~
# 1072|       }
# 1073|   
# 1074|->   if (hw_addr && if_req.ifr_hwaddr.sa_data && hw_type->print_hw_addr)
# 1075|       *hw_addr = hw_type->print_hw_addr ((guchar *) if_req.ifr_hwaddr.sa_data);
# 1076|   

Error: COMPILER_WARNING (CWE-477): [#def6]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-util.c: scope_hint: In function 'netstatus_stats_copy'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-util.c:84:3: warning[-Wdeprecated-declarations]: 'g_memdup' is deprecated: Use 'g_memdup2' instead
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
/usr/include/glib-2.0/gobject/gbinding.h:30: included_from: Included from here.
/usr/include/glib-2.0/glib-object.h:24: included_from: Included from here.
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-util.h:27: included_from: Included from here.
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/netstatus/netstatus-util.c:27: included_from: Included from here.
/usr/include/glib-2.0/glib/gstrfuncs.h:338:23: note: declared here
#   82|   netstatus_stats_copy (NetstatusStats *stats)
#   83|   {
#   84|->   return (NetstatusStats *)g_memdup (stats, sizeof (NetstatusStats));
#   85|   }
#   86|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/tray.c: scope_hint: In function ‘client_delete’
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/tray.c:149:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tc_pred’
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/tray.c: scope_hint: In function ‘client_delete’
#  147|                 tc_pred = tc_cursor, tc_cursor = tc_cursor->client_flink) ;
#  148|               if (tc_cursor == tc)
#  149|->                 tc_pred->client_flink = tc->client_flink;
#  150|           }
#  151|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/openweathermap.c: scope_hint: In function 'parseResponse'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/openweathermap.c:665:15: warning[-Wanalyzer-null-argument]: use of NULL 'pcBigImageURL' where non-null expected
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/openweathermap.c:54:28: note: in definition of macro 'CHAR_P'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#  663|                   pcBigImageURL = g_strdup_printf("http://openweathermap.org/img/wn/%s@4x.png", icon);
#  664|                 }
#  665|->               setImageIfDifferent(&pEntry->pcImageURL_,
#  666|                                     &pEntry->pImage_,
#  667|                                     &pEntry->fAspectRatio,

Error: CPPCHECK_WARNING (CWE-476): [#def9]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/openweathermap.c:669: warning[nullPointer]: Possible null pointer dereference: pcImageURL
#  667|                                     &pEntry->fAspectRatio,
#  668|                                     pcImageURL,
#  669|->                                   strlen(pcImageURL),
#  670|                                     &pEntry->pcBigImageURL_,
#  671|                                     &pEntry->pBigImage_,

Error: CPPCHECK_WARNING (CWE-476): [#def10]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/openweathermap.c:673: warning[nullPointer]: Possible null pointer dereference: pcBigImageURL
#  671|                                     &pEntry->pBigImage_,
#  672|                                     pcBigImageURL,
#  673|->                                   strlen(pcBigImageURL));
#  674|   
#  675|                 if (number && *number && atoi(number) < 800) /* not clear */

Error: COMPILER_WARNING (CWE-477): [#def11]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_class_init'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:273:3: warning[-Wdeprecated-declarations]: 'g_type_class_add_private' is deprecated
#  273 |   g_type_class_add_private(klass, sizeof(GtkWeatherPrivate));
#      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gtype.h:1497:10: note: declared here
# 1497 | void     g_type_class_add_private       (gpointer                    g_class,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~
#  271|     widget_class->button_press_event = gtk_weather_button_pressed;
#  272|     
#  273|->   g_type_class_add_private(klass, sizeof(GtkWeatherPrivate));
#  274|   
#  275|     g_object_class_install_property(gobject_class, PROP_LOCATION,

Error: COMPILER_WARNING: [#def12]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_init'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:321:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  321 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  319|     LXW_LOG(LXW_DEBUG, "GtkWeather::init()");
#  320|   
#  321|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  322|   
#  323|     /* Box layout internals */

Error: COMPILER_WARNING: [#def13]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_destroy'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:372:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  372 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  370|     GtkWeather * weather = GTK_WEATHER(object);
#  371|   
#  372|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  373|   
#  374|     if (priv->forecast_data.timerid > 0)

Error: COMPILER_WARNING: [#def14]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_size_allocate'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:409:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  409 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(GTK_WEATHER(widget));
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
#  407|       }
#  408|   
#  409|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(GTK_WEATHER(widget));
#  410|   
#  411|     LXW_LOG(LXW_DEBUG, "GtkWeather::size_allocate(%d): x: %d, y: %d, %dx%d (x: %d, y: %d, %dx%d)", 

Error: COMPILER_WARNING: [#def15]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_render'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:464:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  464 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  462|   gtk_weather_render(GtkWeather * weather)
#  463|   {
#  464|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  465|    
#  466|     LXW_LOG(LXW_DEBUG, "GtkWeather::render(): location: %p, forecast: %p",

Error: COMPILER_WARNING: [#def16]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_set_property'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:554:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  554 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  552|     GtkWeather * weather = GTK_WEATHER(object);
#  553|   
#  554|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  555|   
#  556|     LXW_LOG(LXW_DEBUG, "GtkWeather::set_property(%u - %s)", prop_id,

Error: COMPILER_WARNING: [#def17]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_get_property'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:599:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  599 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  597|   {
#  598|     GtkWeather * weather = GTK_WEATHER(object);
#  599|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  600|   
#  601|     switch (prop_id)

Error: COMPILER_WARNING: [#def18]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_set_location'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:628:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  628 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  626|   gtk_weather_set_location(GtkWeather * weather, gpointer location)
#  627|   {
#  628|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  629|   
#  630|     LXW_LOG(LXW_DEBUG, "GtkWeather::set_location(): current: %p, new: %p",

Error: COMPILER_WARNING: [#def19]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_set_forecast'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:670:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  670 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  668|   gtk_weather_set_forecast(GtkWeather * weather, ForecastInfo * forecast)
#  669|   {
#  670|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  671|   
#  672|     LXW_LOG(LXW_DEBUG, "GtkWeather::set_forecast(): current: %p, new: %p",

Error: COMPILER_WARNING: [#def20]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_get_provider'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:695:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  695 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  693|   provider_callback_info * gtk_weather_get_provider(GtkWeather * weather)
#  694|   {
#  695|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  696|   
#  697|     return priv->provider;

Error: COMPILER_WARNING: [#def21]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_set_provider'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:702:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  702 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  700|   int gtk_weather_set_provider(GtkWeather * weather, provider_callback_info * provider)
#  701|   {
#  702|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  703|     ProviderInfo * instance = NULL;
#  704|   

Error: COMPILER_WARNING: [#def22]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_button_pressed'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:736:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  736 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
#  734|   
#  735|     GtkWeather * weather = GTK_WEATHER(widget);
#  736|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#  737|   
#  738|   #ifdef USE_STANDALONE

Error: COMPILER_WARNING: [#def23]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_auto_update_toggled'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:770:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  770 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(GTK_WEATHER(widget));
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
#  768|     LXW_LOG(LXW_DEBUG, "GtkWeather::auto_update_toggled()");
#  769|   
#  770|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(GTK_WEATHER(widget));
#  771|   
#  772|     LocationInfo * location = priv->location;

Error: COMPILER_WARNING: [#def24]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_change_location'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:805:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
#  805 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(GTK_WEATHER(widget));
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   
#  803|     (void)event;
#  804|   
#  805|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(GTK_WEATHER(widget));
#  806|   
#  807|     GtkWidget * dialog = gtk_dialog_new_with_buttons(_("Enter New Location"),

Error: COMPILER_WARNING: [#def25]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_preferences_dialog_response'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:1139:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1139 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# 1137|     GtkWeather * weather = GTK_WEATHER(data);
# 1138|   
# 1139|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
# 1140|   
# 1141|     switch(response)

Error: COMPILER_WARNING: [#def26]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_create_preferences_dialog'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:1252:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1252 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# 1250|     LXW_LOG(LXW_DEBUG, "GtkWeather::create_preferences_dialog()");
# 1251|   
# 1252|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
# 1253|   
# 1254|     priv->preferences_data.dialog = gtk_dialog_new_with_buttons(_("Weather Preferences"),

Error: COMPILER_WARNING: [#def27]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_update_preferences_dialog'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:1501:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1501 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# 1499|     LXW_LOG(LXW_DEBUG, "GtkWeather::update_preferences_dialog()");
# 1500|   
# 1501|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
# 1502|   
# 1503|     if (!priv->preferences_data.dialog)

Error: COMPILER_WARNING: [#def28]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_run_conditions_dialog'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:1600:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1600 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# 1598|     LXW_LOG(LXW_DEBUG, "GtkWeather::run_conditions_dialog()");
# 1599|   
# 1600|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
# 1601|   
# 1602|     LocationInfo * location = priv->location;

Error: COMPILER_WARNING: [#def29]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_show_location_progress_bar'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:1982:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 1982 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# 1980|     LXW_LOG(LXW_DEBUG, "GtkWeather::show_location_progress_bar()");
# 1981|   
# 1982|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
# 1983|   
# 1984|     gchar * progress_str = g_strdup_printf(_("Searching for '%s'..."), priv->location_data.location);

Error: COMPILER_WARNING: [#def30]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_show_location_list'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:2108:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2108 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# 2106|     LXW_LOG(LXW_DEBUG, "GtkWeather::show_location_list(%d)", g_list_length(list));
# 2107|   
# 2108|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
# 2109|   
# 2110|     gchar * dialog_str = g_strdup_printf(_("Location matches for '%s'"), 

Error: COMPILER_WARNING: [#def31]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_get_tooltip_text'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:2262:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2262 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# 2260|   gtk_weather_get_tooltip_text(GtkWeather * weather)
# 2261|   {
# 2262|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
# 2263|   
# 2264|     LXW_LOG(LXW_DEBUG, "GtkWeather::get_tooltip_text()");

Error: COMPILER_WARNING: [#def32]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_get_forecast'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:2357:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2357 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               
# 2355|     LXW_LOG(LXW_DEBUG, "GtkWeather::get_forecast()");
# 2356|   
# 2357|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(weather);
# 2358|   
# 2359|     LocationInfo * location = priv->location;

Error: COMPILER_WARNING: [#def33]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c: scope_hint: In function 'gtk_weather_get_forecast_timerfunc'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/weather/weatherwidget.c:2424:13: warning: Deprecated pre-processor symbol: replace with "G_ADD_PRIVATE"
# 2424 |   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(GTK_WEATHER(data));
#      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     
# 2422|   gtk_weather_get_forecast_timerfunc(gpointer data)
# 2423|   {
# 2424|->   GtkWeatherPrivate * priv = GTK_WEATHER_GET_PRIVATE(GTK_WEATHER(data));
# 2425|   
# 2426|     LXW_LOG(LXW_DEBUG, "GtkWeather::get_forecast_timerfunc(%d %d)", 

Error: COMPILER_WARNING (CWE-697): [#def34]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/xkb/xkb.c: scope_hint: In function 'initialize_keyboard_description'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/xkb/xkb.c:148:96: warning[-Waddress]: the comparison will always evaluate as 'false' for the address of 'groups' will never be NULL
#  148 |         if ((xkb_desc->names == NULL) || (xkb_desc->ctrls == NULL) || (xkb_desc->names->groups == NULL))
#      |                                                                                                ^~
/usr/include/X11/XKBlib.h:31: included_from: Included from here.
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/plugins/xkb/xkb.h:23: included_from: Included from here.
/usr/include/X11/extensions/XKBstr.h:424:27: note: 'groups' declared here
#  424 |         Atom              groups[XkbNumKbdGroups];
#      |                           ^~~~~~
#  146|           XkbGetControls(xdisplay, XkbAllControlsMask, xkb_desc);
#  147|           XkbGetNames(xdisplay, XkbSymbolsNameMask | XkbGroupNamesMask, xkb_desc);
#  148|->         if ((xkb_desc->names == NULL) || (xkb_desc->ctrls == NULL) || (xkb_desc->names->groups == NULL))
#  149|               g_warning("XkbGetControls/XkbGetNames failed\n");
#  150|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def35]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/conf.c: scope_hint: In function '_config_write_setting'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/conf.c:347:17: warning[-Wanalyzer-null-argument]: use of NULL 'f' where non-null expected
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/conf.h:33: included_from: Included from here.
/usr/include/stdio.h:357:12: note: argument 1 of 'fprintf' must be non-null
#  345|               }
#  346|               else
#  347|->                 fprintf(f, "%s%s {\n", buf->str, setting->name);
#  348|               g_string_append(buf, SETTING_INDENT);
#  349|               for (s = setting->first; s; s = s->next)

Error: COMPILER_WARNING: [#def36]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/configurator.c: scope_hint: In function 'panel_configure'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/configurator.c:1164:45: warning[-Wformat-truncation=]: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4
# 1164 |             snprintf(itext, sizeof(itext), "%d", i + 1);
#      |                                             ^~
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/configurator.c:1164:44: note: directive argument in the range [2, 2147483647]
# 1164 |             snprintf(itext, sizeof(itext), "%d", i + 1);
#      |                                            ^~~~
/usr/include/bits/stdio2.h:68:10: note: '__snprintf_chk' output between 2 and 11 bytes into a destination of size 4
#   68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
#      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69 |                                    __glibc_objsize (__s), __fmt,
#      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   70 |                                    __va_arg_pack ());
#      |                                    ~~~~~~~~~~~~~~~~~
# 1162|           for (i = 1; i < monitors; i++)
# 1163|           {
# 1164|->             snprintf(itext, sizeof(itext), "%d", i + 1);
# 1165|   #if GTK_CHECK_VERSION(3, 0, 0)
# 1166|               gtk_list_store_append(model, &it);

Error: CPPCHECK_WARNING (CWE-476): [#def37]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/misc.c:1368: error[ctunullpointer]: Null pointer dereference: panel
# 1366|       const gchar * image_file, int width, int height, gulong highlight_color, gboolean keep_ratio, Panel * panel, const gchar * label)
# 1367|   {
# 1368|->     return _lxpanel_button_new_for_icon(panel->topgwin, fm_icon_from_name(image_file), height, highlight_color, label);
# 1369|   }
# 1370|   

Error: CPPCHECK_WARNING (CWE-476): [#def38]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/misc.c:1368: warning[nullPointer]: Possible null pointer dereference: panel
# 1366|       const gchar * image_file, int width, int height, gulong highlight_color, gboolean keep_ratio, Panel * panel, const gchar * label)
# 1367|   {
# 1368|->     return _lxpanel_button_new_for_icon(panel->topgwin, fm_icon_from_name(image_file), height, highlight_color, label);
# 1369|   }
# 1370|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/misc.c: scope_hint: In function 'fb_button_new_from_file_with_label'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/misc.c:1368:12: warning[-Wanalyzer-null-dereference]: dereference of NULL 'panel'
# 1366|       const gchar * image_file, int width, int height, gulong highlight_color, gboolean keep_ratio, Panel * panel, const gchar * label)
# 1367|   {
# 1368|->     return _lxpanel_button_new_for_icon(panel->topgwin, fm_icon_from_name(image_file), height, highlight_color, label);
# 1369|   }
# 1370|   

Error: COMPILER_WARNING (CWE-563): [#def40]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/plugin.c: scope_hint: In function '_old_plugin_config'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/plugin.c:72:30: warning[-Wunused-variable]: unused variable 'init'
#   72 |     const LXPanelPluginInit *init = PLUGIN_CLASS(instance);
#      |                              ^~~~
#   70|   static GtkWidget *_old_plugin_config(LXPanel *panel, GtkWidget *instance)
#   71|   {
#   72|->     const LXPanelPluginInit *init = PLUGIN_CLASS(instance);
#   73|       Plugin * plugin;
#   74|   

Error: COMPILER_WARNING (CWE-563): [#def41]
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/plugin.c: scope_hint: In function '_old_plugin_reconfigure'
lxpanel-0.10.1_20240825gitffd815fc-build/lxpanel-0.10.1-20240825gitffd815fc/lxpanel/src/plugin.c:84:30: warning[-Wunused-variable]: unused variable 'init'
#   84 |     const LXPanelPluginInit *init = PLUGIN_CLASS(instance);
#      |                              ^~~~
#   82|   static void _old_plugin_reconfigure(LXPanel *panel, GtkWidget *instance)
#   83|   {
#   84|->     const LXPanelPluginInit *init = PLUGIN_CLASS(instance);
#   85|       Plugin * plugin;
#   86|   

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-245.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelxpanel-0.10.1^20240825gitffd815fc-1.fc42
store-results-to/tmp/tmprhg6sfaz/lxpanel-0.10.1^20240825gitffd815fc-1.fc42.tar.xz
time-created2024-11-13 01:57:48
time-finished2024-11-13 02:00:26
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmprhg6sfaz/lxpanel-0.10.1^20240825gitffd815fc-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmprhg6sfaz/lxpanel-0.10.1^20240825gitffd815fc-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9